package com.jy.api.misc.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.util.Collection;
import java.util.Date;

/**
 * 由于值域和。编码系统许多字段相同，因此共用。
 */
@Data
@ApiModel("编码系统-代码model")
public class WSSYBMXTDaiMaDto {

    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty("标识符")
    private String biaoShiFu;

    @ApiModelProperty("类别名称")
    private String leiBieMC;

    @ApiModelProperty("版本")
    private Integer banBen;

    @ApiModelProperty("标准类型")
    private Integer biaoZhunLX;

    @ApiModelProperty("发布机构id")
    private String faBuJGID;

    @ApiModelProperty("发布机构")
    private String faBuJGMC;

    @ApiModelProperty("生效时间")
    private LocalDate shengXiaoSJ;

    @ApiModelProperty("失效时间")
    private LocalDate shiXiaoSJ;

    @ApiModelProperty("描述")
    private String miaoShu;

    @ApiModelProperty("状态。1：草稿，2：使用，3：作废")
    private Integer status;

    @ApiModelProperty("文件来源名称")
    private String laiYuanMC;

    @ApiModelProperty("文件来源文件的ID")
    private String laiYuanId;

    @ApiModelProperty("业务域来源")
    private String yeWuYuLY;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date chuangJianSJ;

    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date xiuGaiSJ;

    private String gengXinR;

    @ApiModelProperty("编码系统获取代码时的类型")
    private Integer type;

    @ApiModelProperty("发布时间")
    private LocalDate faBuSJ;

    private Collection<DaiMaDto> daiMaVoList;

}

